package Model.Draw.Events;

import Model.Core.IElement;
import java.util.EventObject;

/**
 * Projeto de TCC: Editor de Diagramas de comunicação BlueJ
 * @author Jose Luz e Michele Puretachi
 */
public class DrawEvent extends EventObject {
    private Object sourceElement;
    private Object targetElement;

    public DrawEvent(IElement element, Object sourceElement, Object targetElement){
        super(element);
        this.sourceElement = sourceElement;
        this.targetElement = targetElement;
    }

    public Object getOriginElement() {
        return sourceElement;
    }

    public void setOriginElement(Object sourceElement) {
        this.sourceElement = sourceElement;
    }

    public Object getTargetElement() {
        return targetElement;
    }

    public void setTargetElement(Object objectEntity) {
        this.targetElement = objectEntity;
    }    
}